package top.huxy.boot.util.obj;

public class BinaryResult {
    private byte[] data;
    private Result result;

    public BinaryResult(byte[] data, Result result) {
        this.data = data;
        this.result = result;
    }

    public static BinaryResult send(byte[] data, Result result) {
        return new BinaryResult(data, result);
    }

    public Result getResult() {
        return result;
    }

    public byte[] getData() {
        return data;
    }
}
